<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1" import="ass.beans.*" import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

	<%
		MovieBean movieBean = (MovieBean) request.getAttribute("movieBean");
		List<CinemaBean> cinemabeanlist = (List<CinemaBean>) request
				.getAttribute("cinemabeanlist");
		List<CinemaMovieBean> showtimelist = (List<CinemaMovieBean>) request
				.getAttribute("showtimelist");
	%>
	<%@ include file="header.html"%>
	<%@ include file="userNavBar.html"%>

	
	<div align="center">
		<form action="BuyTicketServlet" method="post" name="form1" id="form1">
			<table width="400" border="0">
				<tr>
					<td align="left">Title:</td>
				  <td align="left">
					  <select name="title" id="title">
					    <option value=<%=movieBean.getMovie_title()%>><%=movieBean.getMovie_title()%></option>
		            </select></td>
				</tr>
				<tr>
					<td align="left">Cinema:</td>
					<td align="left"><label for="cinema"></label> <select
						name="cinema" id="cinema">



							<%
								for (CinemaMovieBean cinemamovieBean : showtimelist) {
									out.print("<option value='" + cinemamovieBean.getCinema_id()
											+ "'>" +"MyCinema" +cinemamovieBean.getCinema_id() + "</option>");
								}
							%>

					</select>
					</td>
				</tr>
				<tr>
					<td align="left">Show time:</td>
					<td align="left"><label for="time"></label> <select
						name="time" id="time">
							<%
								for (CinemaMovieBean cinemamovieBean : showtimelist) {
									out.print("<option value='" + cinemamovieBean.getShowtime()
											+ "'>" + cinemamovieBean.getShowtime() + "</option>");
								}
							%>

					</select>
					</td>
				</tr>
				<tr>
					<td align="left">Ticket amount:</td>
					<td align="left"><label for="amount"></label> <select
						name="amount" id="amount">
							<option value="1" selected>1</option>
							<option value="2">2</option>
							<option value="3">3</option>
							<option value="4">4</option>
							<option value="5">5</option>
					</select>
					</td>
				</tr>
                <tr>
					<td align="left">&nbsp;</td>
					<td align="left">&nbsp;</td>
				</tr>
                <tr>
					<td align="left">Payment Details</td>
					<td align="left">&nbsp;</td>
				</tr>
                <tr>
					<td align="left"> Card Holder's Name: </td>
					<td align="left"><label for="textfield"></label>
				    <input type="text" name="textfield" id="textfield"></td>
				</tr>
                <tr>
					<td align="left"> Card No: </td>
					<td align="left"><label for="textfield2"></label>
				    <input type="text" name="textfield2" id="textfield2"></td>
				</tr>
               
				<tr>
					<td align="left"><input type="submit" name="button"
						id="button" value="Submit">
					</td>
					<td align="left"><input type="reset" name="button2"
						id="button2" value="Reset">
					</td>
				</tr>
				<tr>
					<td align="left">&nbsp;</td>
					<td align="left">&nbsp;</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>